package com.resys.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;
import com.resys.entity.enums.DateTimePatternEnum;
import com.resys.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 
 */
public class Customer implements Serializable {


	/**
	 * 客户唯一标识id
	 */


	private String customerId;

	/**
	 * 客户用户名
	 */
	private String clientName;

	/**
	 * 
	 */
	private String password;

	/**
	 * 
	 */
	private String realname;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createAt;

	/**
	 * 
	 */
	private String lastloginIp;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastloginAt;

	/**
	 * 单位
	 */
	private String company;

	/**
	 * 通过人
	 */
	private String createBy;

	/**
	 * 头像
	 */
	private String avator;

	/**
	 * 0:正常，1禁用
	 */
	private Integer accountStatus;

	/**
	 * 注册手机号
	 */
	private String phone;


	public void setCustomerId(String customerId){
		this.customerId = customerId;
	}

	public String getCustomerId(){
		return this.customerId;
	}

	public void setClientName(String clientName){
		this.clientName = clientName;
	}

	public String getClientName(){
		return this.clientName;
	}

	public void setPassword(String password){
		this.password = password;
	}

	public String getPassword(){
		return this.password;
	}

	public void setRealname(String realname){
		this.realname = realname;
	}

	public String getRealname(){
		return this.realname;
	}

	public void setCreateAt(Date createAt){
		this.createAt = createAt;
	}

	public Date getCreateAt(){
		return this.createAt;
	}

	public void setLastloginIp(String lastloginIp){
		this.lastloginIp = lastloginIp;
	}

	public String getLastloginIp(){
		return this.lastloginIp;
	}

	public void setLastloginAt(Date lastloginAt){
		this.lastloginAt = lastloginAt;
	}

	public Date getLastloginAt(){
		return this.lastloginAt;
	}

	public void setCompany(String company){
		this.company = company;
	}

	public String getCompany(){
		return this.company;
	}

	public void setCreateBy(String createBy){
		this.createBy = createBy;
	}

	public String getCreateBy(){
		return this.createBy;
	}

	public void setAvator(String avator){
		this.avator = avator;
	}

	public String getAvator(){
		return this.avator;
	}

	public void setAccountStatus(Integer accountStatus){
		this.accountStatus = accountStatus;
	}

	public Integer getAccountStatus(){
		return this.accountStatus;
	}

	public void setPhone(String phone){
		this.phone = phone;
	}

	public String getPhone(){
		return this.phone;
	}

	@Override
	public String toString (){
		return "客户唯一标识id:"+(customerId == null ? "空" : customerId)+"，客户用户名:"+(clientName == null ? "空" : clientName)+"，password:"+(password == null ? "空" : password)+"，realname:"+(realname == null ? "空" : realname)+"，createAt:"+(createAt == null ? "空" : DateUtil.format(createAt, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()))+"，lastloginIp:"+(lastloginIp == null ? "空" : lastloginIp)+"，lastloginAt:"+(lastloginAt == null ? "空" : DateUtil.format(lastloginAt, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()))+"，单位:"+(company == null ? "空" : company)+"，通过人:"+(createBy == null ? "空" : createBy)+"，头像:"+(avator == null ? "空" : avator)+"，0:正常，1禁用:"+(accountStatus == null ? "空" : accountStatus)+"，注册手机号:"+(phone == null ? "空" : phone);
	}
}
